﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Common;

namespace Ex02
{
    class Program
    {
        static void Main(string[] args)
        {
            // In LINQPad we're *inside* the DataContext, so don't need to instantiate it:
            var db = new NorthwindEntities();
            db.Customers.Dump("All customers");
            db.Customers.Count().Dump("Number of rows in customer table");
            db.Customers.Single(c => c.ID == 2).Dump("Customer with ID of 2");
            Console.ReadKey();
        }
    }
}
